// 更改用户状态信息
export const userInfo = (state, user, token) => {
  if (user) {
    state.currentUser = user;
    state.isLogin = true;
  } else if (!user) {
    state.currentUser = null;
    state.isLogin = false;
  }
};
